import java.util.ArrayList;
import java.util.Collection;

/**
 * @author DuJiabao
 * @create 2020-12-27 13:49
 */
public class ForeachTest {
    public static void main(String[] args) {
        Collection collection = new ArrayList();
//        collection.add("hello");
        for(Object o:collection){
            System.out.println(o);
        }
    }
}
